-- GENERATED SPELL FOR [Lady Hederine] --


function spell0_10201(pUnit, Event) --@Dominate Mind,n/a--
pUnit:FullCastSpellOnTarget(7645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10201', 12000, 1)
end

function spell1_10201(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(12096,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10201', 9500, 1)
end

function spell2_10201(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(17146,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10201', 18000, 1)
end

function Sorts_10201(pUnit, Event)
local choix_sorts_10201 = math.random(0, 2)
if choix_sorts_10201 == 0 then
pUnit:RegisterEvent('spell0_10201', 1, 1)
end
if choix_sorts_10201 == 1 then
pUnit:RegisterEvent('spell1_10201', 1, 1)
end
if choix_sorts_10201 == 2 then
pUnit:RegisterEvent('spell2_10201', 1, 1)
end
end

function mob10201_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10201', math.random(1500, 3000), 1)
end

function mob10201_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10201_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10201_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10201, 1, 'mob10201_Action')
RegisterUnitEvent(10201, 2, 'mob10201_Leave')
RegisterUnitEvent(10201, 3, 'mob10201_Kill')
RegisterUnitEvent(10201, 4, 'mob10201_Die')
